package hzncc.wcs.vo.wcs;

import com.diboot.core.binding.annotation.*;
import com.diboot.core.vo.FileVO;
import com.diboot.core.vo.LabelValue;
import com.diboot.iam.entity.IamOrg;
import com.diboot.iam.entity.IamPosition;
import com.diboot.iam.entity.IamRole;
import com.diboot.iam.entity.IamUser;
import com.diboot.file.entity.FileRecord;
import hzncc.wcs.entity.wcs.ProductInfo;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.List;
import java.time.LocalDate;

/**
* 产品信息 VO定义
* @author MyName
* @version 1.0
* @date 2025-03-20
* Copyright © MyCorp
*/
@Getter @Setter @Accessors(chain = true)
public class ProductInfoListVO extends ProductInfo  {
private static final long serialVersionUID = 1823665843479945224L;

    /**
    * 料盘图片 关联文件信息
    */
    @BindEntityList(entity = FileRecord.class, condition = "this.tray_picture = id", splitBy = ",")
    private List<FileVO> trayPictureFiles;

    /**
    * 创建人 关联信息
    */
    @BindField(entity = IamUser.class, field = "realname", condition = "this.create_by = id")
    private String createByLabel;

    /**
    * 更新人 关联信息
    */
    @BindField(entity = IamUser.class, field = "realname", condition = "this.update_by = id")
    private String updateByLabel;

}